import axios from "axios";
const Axios = axios.create({
  // baseURL: 'http://localhost:8080',
  baseURL: 'http://47.100.30.12:8080',
  timeout: 3000
})
Axios.interceptors.request.use(config => {
  if (config.push == '/') {
    console.log('');
  } else {
    if (sessionStorage.getItem('token')) {
      config.headers.token = sessionStorage.getItem('token');
    }
  }
  return config;
}, error => {
  return Promise.reject(error);
});
export default Axios